package com.xuecheng.api.search;

import java.io.IOException;
import java.util.Map;

import com.xuecheng.framework.domain.course.CoursePub;
import com.xuecheng.framework.domain.course.TeachplanMediaPub;
import com.xuecheng.framework.domain.search.CourseSearchParam;
import com.xuecheng.framework.model.response.QueryResponseResult;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value = "课程搜索接口",description = "提供课程的查询",tags= {"课程搜索接口"})
public interface SearchControllerApi {
    
    @ApiOperation("课程搜索")
    QueryResponseResult<CoursePub> list(int page,int size,
               CourseSearchParam courseSearchParam) throws IOException;
    
    @ApiOperation("根据课程id查询课程信息")
    Map<String, CoursePub> getAll(String id);
    
    @ApiOperation("根据课程计划id查询课程媒资信息")
    TeachplanMediaPub getMedia(String id);

}
